package ae.pcfc.cldos.online.web.util;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * String utils
 * 
 * 
 * @author arosa
 *
 */
public final class StringUtils {

	/**
	 * Return file extension by file name
	 * 
	 * @param fileName
	 * @return
	 */
	private static final SimpleDateFormat DATE_FORMAT = new SimpleDateFormat("dd/MM/yyyy");
	
	public static final String getFileExtension(String fileName){
		return fileName.substring(fileName.lastIndexOf('.')+1,fileName.length());
	}
	
	public static final String  getDateString(Date date){
		return DATE_FORMAT.format(date);
	}
}
